package sys

import "lib/structs/tables"

type AddOrg struct {
	ParentId int64  `json:"parentId,string"`
	OrgName  string `json:"orgName" `
	Status   int    `json:"status"`
}

type SearchOrg struct {
	OrgName string `form:"orgName"`
}

type OrgNode struct {
	Id       int64      `json:"id,string"`
	OrgName  string     `json:"orgName"`
	ParentId int64      `json:"parentId,string"`
	Mate     tables.Org `json:"mate"`
	Label    string     `json:"label"`
	Value    string     `json:"value"`
	Children []OrgNode  `json:"children"`
}
